// 导入网络请求模块
import { http } from '@/utils/http.js'

// 获取短信
export const verifyCodeApi = (data) => {
	return http.request({
		url: '/code',
		params: data,
	})
}
// 登录

export const loginByMobileApi = (data) => {
	return http.request({
		url: '/login',
		method: 'POST',
		data: data,
	})
}

/**
 * 获取用户信息
 */
export const userInfoApi = () => {
	return http.get('/patient/myUser')
}
